<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
</head>
<body>

<div id="index">
    <img :src="url" :alt="title"><br>
    <input :type="type" placeholder="请输入wifi密码"> <button @click="type='text'">显示密码</button>
</div>

<script>
    let vm = new Vue({
        el:"#index",
        data:{
          url:"#",
          title:"测试图片",
          type:"password"
        }
    })
</script>
</body>
</html>
